function regist(){
  var email=$("#emailaddress").val();
  var psw=$("#password").val();
  var pswMd5=$.md5(psw);
  //校验注册用户名必须为邮箱
  var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
  if(!myreg.test(email)){
	  alert('邮箱格式不正确！');
  }
  else{
	var postData={
		"account":email,
		"password":pswMd5
	  }
	$.ajax({
		type:"POST",
		url:"/hotFixServer/user/regist",
		data:postData,
		success: function(data){
			if(data.model['success']==0){
				alert('注册成功，请前往登录页重新登录');
				window.location.href="index.html";
			}
			else if(data.model['success']==1){
				alert(data.model['info']);
			}
			else if(data.model['success']==-1){
				alert(data.model['info']);
			}
			
		}
	  });
	  
  }
  
  
  
}